package com.skt.manage.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.skt.manage.mapper.DoctorsMapper;
import com.skt.manage.domain.Doctors;
import com.skt.manage.service.IDoctorsService;

/**
 * 医生信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-14
 */
@Service
public class DoctorsServiceImpl implements IDoctorsService 
{
    @Autowired
    private DoctorsMapper doctorsMapper;

    /**
     * 查询医生信息
     * 
     * @param doctorId 医生信息主键
     * @return 医生信息
     */
    @Override
    public Doctors selectDoctorsByDoctorId(Long doctorId)
    {
        return doctorsMapper.selectDoctorsByDoctorId(doctorId);
    }

    /**
     * 查询医生信息列表
     * 
     * @param doctors 医生信息
     * @return 医生信息
     */
    @Override
    public List<Doctors> selectDoctorsList(Doctors doctors)
    {
        return doctorsMapper.selectDoctorsList(doctors);
    }

    /**
     * 新增医生信息
     * 
     * @param doctors 医生信息
     * @return 结果
     */
    @Override
    public int insertDoctors(Doctors doctors)
    {
        return doctorsMapper.insertDoctors(doctors);
    }

    /**
     * 修改医生信息
     * 
     * @param doctors 医生信息
     * @return 结果
     */
    @Override
    public int updateDoctors(Doctors doctors)
    {
        return doctorsMapper.updateDoctors(doctors);
    }

    /**
     * 批量删除医生信息
     * 
     * @param doctorIds 需要删除的医生信息主键
     * @return 结果
     */
    @Override
    public int deleteDoctorsByDoctorIds(Long[] doctorIds)
    {
        return doctorsMapper.deleteDoctorsByDoctorIds(doctorIds);
    }

    /**
     * 删除医生信息信息
     * 
     * @param doctorId 医生信息主键
     * @return 结果
     */
    @Override
    public int deleteDoctorsByDoctorId(Long doctorId)
    {
        return doctorsMapper.deleteDoctorsByDoctorId(doctorId);
    }
}
